package com.zgm.ch04._4_2;

public class ReplacementTarget {
	
	public String formatMessage(String msg){
		StringBuilder sb = new StringBuilder();
		sb.append("<h1>").append(msg).append("</h1>");
		
		return sb.toString();
	}
	
	public String formatMessage(Object msg){
		StringBuilder sb = new StringBuilder();
		sb.append("<h1>").append(msg).append("</h1>");
		
		return sb.toString();
	}
}
